Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty TypeMeta while running API conversions #1422

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Jul 25, 2024

Description of your changes

Depends on: crossplane/upjet#424

To be completed... cc. @mergenci, @turkenf

  • Fix an issue with API conversions when the TypeMeta information has been dropped.
  • Add v1beta1 -> v1beta3 field renaming conversions for relevant resources.
  • Do not replace but append conversion functions.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Tested against crossplane-contrib/provider-upjet-aws resource Instance.rds with conversions between the versions v1beta1 & v1beta2.

@ulucinar ulucinar marked this pull request as draft July 25, 2024 11:12
@ulucinar
Copy link
Collaborator Author

Hi @turkenf, @mergenci,
Could you please take over this? Please ping me if help is needed.

Copy link

This provider repo does not have enough maintainers to address every pull request. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Oct 24, 2024
@turkenf
Copy link
Collaborator

turkenf commented Oct 24, 2024

/fresh

@github-actions github-actions bot removed the stale label Oct 25, 2024
ulucinar and others added 2 commits November 5, 2024 00:54
- Fix an issue with API conversions when the TypeMeta information
  has been dropped.
- Add v1beta1 -> v1beta3 field renaming conversions for relevant
  resources (fast-tracked in commit 32ce2a9).
- Do not replace but append conversion functions (fast-tracked in
  commit 32ce2a9).

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
The previous `make generate` wasn't committed separately. This one
reflects changes because of Upjet commit [5cdf369][].

[5cdf369]: crossplane/upjet@5cdf369

Signed-off-by: Cem Mergenci <[email protected]>
@mergenci
Copy link
Collaborator

mergenci commented Nov 4, 2024

/test-examples="examples/ec2/v1beta2/vpcendpoint.yaml"

@mergenci
Copy link
Collaborator

mergenci commented Nov 4, 2024

/test-examples="examples/rds/v1beta2/instance.yaml"

@mergenci
Copy link
Collaborator

mergenci commented Nov 5, 2024

/test-examples="examples/ec2/v1beta1/vpcendpoint.yaml"

@mergenci
Copy link
Collaborator

mergenci commented Nov 5, 2024

/test-examples="examples/rds/v1beta1/instance.yaml"

@mergenci
Copy link
Collaborator

mergenci commented Nov 5, 2024

/test-examples="examples/ec2/v1beta1/vpcendpoint.yaml"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants